package com.lagou.bean;

import java.io.IOException;
import java.io.InputStream;
import java.io.Serializable;

/**
 * 封装request
 */
public class HttpRequest implements Serializable {
    private String method;
    private String url;
    private final InputStream inputStream;

    public HttpRequest(InputStream inputStream) throws IOException {
        this.inputStream = inputStream;
    }

    public String getMethod() {
        return method;
    }

    public HttpRequest setMethod(String method) {
        this.method = method;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public HttpRequest setUrl(String url) {
        this.url = url;
        return this;
    }

    public InputStream getInputStream() {
        return inputStream;
    }
}
